/**   
* @{#} XmlContext.java Create on 2013-8-12 上午8:34:33   
*   
* Copyright (c) 2012 by Baidu.   
*/
package objtable.engine;

import java.util.HashMap;

/**   
* @author <a href="mailto:zhangbo07@baidu.com">zhangbo07</a>  
* @version 1.0   
*/

public class XmlContext {
	private static HashMap<String, Object> id2Obj = new HashMap<String, Object>();

	private XmlContext() {

	}

	public static void putIdObj(String id, Object obj) {
		id2Obj.put(id, obj);
	}

	public static Object getObjById(String id) {
		return id2Obj.get(id);
	}
}
